package xml.uidElements;

public class Transition {

	private String id;
	private String target;
	private String targetType;
	private String option;
	private String condition;
	private boolean noReturn;

	public Transition(String idTransition, AbstractState targetState) {
		this.setId(idTransition);
		this.setTarget(targetState.getId());
		setTargetType("state");

	}

	public Transition(String idTransition, String idTargetUIDCall) {
		this.setId(idTransition);
		this.setTarget(idTargetUIDCall);
		setTargetType("UID-call");
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public void setOption(String option) {
		this.option = option;
	}

	public String getOption() {
		return option;
	}

	public void setCondition(String condition) {
		this.condition = condition;
	}

	public String getCondition() {
		return condition;
	}

	public void setNoReturn(boolean noReturn) {
		this.noReturn = noReturn;
	}

	public boolean isNoReturn() {
		return noReturn;
	}

	public void setTargetType(String targetType) {
		this.targetType = targetType;
	}

	public String getTargetType() {
		return targetType;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public String getTarget() {
		return target;
	}

}
